﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="signin.ascx.cs" Inherits="UserControls_signin" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<div id="infor" style="width: 49px; height: 21px">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <script type="text/javascript" >
    function Cover(bottom,top)
        {
            var location = Sys.UI.DomElement.getLocation(bottom);
            top.style.position = 'absolute';
            top.style.top=location.y+'px';
            top.style.left=location.x+'px';
            top.style.height=bottom.offsetHeight+'px';
            top.style.width=bottom.offsetWidth+'px';
        }
    </script>
 <asp:LinkButton ID="btnSignin" runat="server" OnClientClick="return false" 
               Font-Bold="True" Font-Underline="False" Font-Names="Microsoft YaHei" 
               Font-Overline="False"  >登录</asp:LinkButton>
</div>
<br />
<div  id="flyoutSignin" 
    style="display:none; border : thin solid #0000FF; height: 161px; width: 253px; background-color: #FFFFCC;">
    <div style="width: 40px; height: 23px; float: right;">
        <asp:LinkButton ID="btnClose" runat="server"  OnClientClick="return false"  Font-Bold="true" Font-Underline="false" Font-Names="Microsoft YaHei" >关闭</asp:LinkButton>
    </div>
</div>

<div id="flyout" 
    style=" display:none; width:250px; z-index:2; background-color:#FFFFFF; border:solid 1px #D0D0D0;">
</div>

<cc1:AnimationExtender ID="openAnimation" runat="server" TargetControlID="btnSignin">
<Animations>
<OnClick>
<Sequence>
<ScriptAction Script="Cover($get('btnSignin'),$get('flyout'));" />
<StyleAction AnimationTarget="flyout" Attribute="display" Value="block" />
<Parallel AnimationTarget="flyout" Duration=".3" Fps="25">
                            <Move Horizontal="166" Vertical="-50" />
                            <Resize Width="166" Height="183" />
                            <Color PropertyKey="backgroundColor" StartValue="#AAAAAA" EndValue="#FFFFFF" />
                        </Parallel>
<ScriptAction Script="Cover($get('flyout'),$get('flyoutSignin'));" />
<StyleAction AnimationTarget="flyoutSignin" Attribute="display" Value="block" />
                        <FadeIn AnimationTarget="flyoutSignin" Duration=".3" />
                        <StyleAction AnimationTarget="flyout" Attribute="display" Value="none" />
<FadeIn AnimationTarget="btnClose" />
</Sequence>
</OnClick>
</Animations>
</cc1:AnimationExtender>


<cc1:AnimationExtender ID="closeAnimation" runat="server" TargetControlID="btnClose">
<Animations>
<OnClick>
<Parallel  AnimationTarget="flyoutSignin" Duration=".3" Fps="25" >
<FadeOut></FadeOut>
<StyleAction AnimationTarget="flyoutSignin" Attribute="display" Value="none" />
</Parallel>
</OnClick>
</Animations>
</cc1:AnimationExtender>



